package com.education.online.service.impl;

import com.education.common.pojo.OUserMaster;
import com.education.common.utils.Convert;
import com.education.online.mapper.OUserMasterMapper;
import com.education.online.service.OUserMasterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 我的达人币 服务层实现
 *
 * @author d
 * @date 2020-06-16 09:54:55
 */
@Service
public class OUserMasterServiceImpl implements OUserMasterService {

    @Autowired
    private OUserMasterMapper oUserMasterMapper;

    //查询我的达人币信息
    @Override
    public OUserMaster selectOUserMasterById(Integer id) {
        return oUserMasterMapper.selectOUserMasterById(id);
    }

    // 查询我的达人币列表
    @Override
    public List<OUserMaster> selectOUserMasterList(OUserMaster oUserMaster) {
        return oUserMasterMapper.selectOUserMasterList(oUserMaster);
    }

    // 新增我的达人币
    @Override
    public int insertOUserMaster(OUserMaster oUserMaster) {
        return oUserMasterMapper.insertOUserMaster(oUserMaster);
    }

    //修改我的达人币
    @Override
    public int updateOUserMaster(OUserMaster oUserMaster) {
        return oUserMasterMapper.updateOUserMaster(oUserMaster);
    }

    //删除我的达人币对象
    @Override
    public int deleteOUserMasterByIds(String ids) {
        return oUserMasterMapper.deleteOUserMasterByIds(Convert.toStrArray(ids));
    }
}